package org.boyan.modules.cgform.model;

/**
 * @author: zhuxiaobao
 * @time: 2021/9/26 12:00
 */

public class b {
    private String a;

    private String b;

    private String c;

    public void setField(String field) {
        this.a = field;
    }

    public void setTable(String table) {
        this.b = table;
    }

    public void setKey(String key) {
        this.c = key;
    }

    @Override
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof b)) {
            return false;
        }
        b b1 = (b)o;
        if (!b1.a(this)) {
            return false;
        }
        String str1 = getField(), str2 = b1.getField();
        if ((str1 == null) ? (str2 != null) : !str1.equals(str2)) {
            return false;
        }
        String str3 = getTable(), str4 = b1.getTable();
        if ((str3 == null) ? (str4 != null) : !str3.equals(str4)) {
            return false;
        }
        String str5 = getKey(), str6 = b1.getKey();
        return !((str5 == null) ? (str6 != null) : !str5.equals(str6));
    }

    protected boolean a(Object paramObject) {
        return paramObject instanceof b;
    }

    @Override
    public int hashCode() {
        boolean var1 = true;
        byte var2 = 1;
        String var3 = this.getField();
        int var6 = var2 * 59 + (var3 == null ? 43 : var3.hashCode());
        String var4 = this.getTable();
        var6 = var6 * 59 + (var4 == null ? 43 : var4.hashCode());
        String var5 = this.getKey();
        var6 = var6 * 59 + (var5 == null ? 43 : var5.hashCode());
        return var6;
    }

    @Override
    public String toString() {
        return "OnlForeignKey(field=" + getField() + ", table=" + getTable() + ", key=" + getKey() + ")";
    }

    public String getField() {
        return this.a;
    }

    public String getTable() {
        return this.b;
    }

    public String getKey() {
        return this.c;
    }

    public b() {}

    public b(String paramString1, String paramString2) {
        this.c = paramString2;
        this.a = paramString1;
    }
}
